package com.pay.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Peng
 * @since 2018-12-10
 */
@TableName("t_merchant_account")
public class MerchantAccount implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 商户账户表
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 商户id
	 */
	private Integer merId;

	/**
	 * 账户金额表
	 */
	private BigDecimal money;

	/**
	 * 乐观锁
	 */
	@Version
	private Integer version;

	/**
	 * 创建账户的时间
	 */
	private Date createtime;

	@TableLogic
	private Integer isdel ; 

	public Integer getIsdel() {
		return isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMerId() {
		return merId;
	}

	public void setMerId(Integer merId) {
		this.merId = merId;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Override
	public String toString() {
		return "MerchantAccount{" +
				"id=" + id +
				", merId=" + merId +
				", money=" + money +
				", version=" + version +
				", createtime=" + createtime +
				"}";
	}
}
